package com.coderyeah.cosmetology.service;

import com.coderyeah.cosmetology.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.coderyeah.cosmetology.util.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lqs
 * @since 2022-05-24
 */
public interface UserService extends IService<User> {

    /**
     * 用户注册
     * @param user
     * @return result
     */
    Result saveUser(User user);

    /**
     * 用户登录
     * @param phone
     * @param password
     * @param code
     * @return
     */
    Result onLogin(String phone, String password, String code);

    /**
     * 根据手机号修改密码
     * @param phone
     * @param newPwd
     * @return
     */
    Result modifyPwd(String phone, String newPwd);
}
